package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    //select setmeal_id from setmeal_dish where dish_id in (1,2,3,4)
    List<Long> getSetmealDishIdsByDishIds(List<Long> dishIds);

    void insertSetmealDishes(List<SetmealDish> setmealDishes);

    List<SetmealDish> getDishIdBySetmealId(Long setmealId);

    void delete(List<Long> ids);
}
